﻿using System;
using System.Collections.Generic;
using System.Linq;
using GalaSoft.MvvmLight;
using SqlSugar;
namespace WebFirst.Entities
{
    /// <summary>
    /// 
    ///</summary>
    [SugarTable("BatchParaConfig")]
    public class BatchParaConfig:ObservableObject
    {
        /// <summary>
        ///  
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="ID" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public int? Id { get; set; }
        /// <summary>
        ///  
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="ObjectName"    )]
         public string ObjectName { get; set; }
        /// <summary>
        ///  
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="ObjectClass"    )]
         public string ObjectClass { get; set; }
        /// <summary>
        ///  
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="strOAD"    )]
         public string StrOAD { get; set; }
        /// <summary>
        ///  
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="DataValue"    )]
         public string DataValue { get; set; }
        /// <summary>
        ///  
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="IsClass1"    )]
         public string IsClass1 { get; set; }
        /// <summary>
        ///  
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="Num"    )]
         public int? Num { get; set; }
        /// <summary>
        ///  
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="ClientAPDU"    )]
         public string ClientAPDU { get; set; }
        /// <summary>
        ///  
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="ReadSecurity"    )]
         public int? ReadSecurity { get; set; }
        /// <summary>
        ///  
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="WriteSecurity"    )]
         public int? WriteSecurity { get; set; }

        private bool? isSelect;
        [SugarColumn(IsIgnore = true)]
        public bool? IsSelect
        {
            get
            {
                if (isSelect == null)
                {
                    isSelect = false;
                }
                return isSelect;
            }
            set
            {
                isSelect = value; RaisePropertyChanged();
            }
        }

        private string setR;
        [SugarColumn(IsIgnore = true)]
        public string SetR
        {
            get { return setR; }
            set { setR = value; RaisePropertyChanged(); }
        }

        private string readR;
        [SugarColumn(IsIgnore = true)]
        public string ReadR
        {
            get { return readR; }
            set { readR = value; RaisePropertyChanged(); }
        }

    }
}
